﻿using System;
using PowerToolsWeb.DataAccess;

namespace PowerToolsWeb
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                BindRepeater();
        }
        void BindRepeater()
        {
            Tpt_ProductCollection product = new Tpt_ProductCollection();
            product.ListRecommend();
            this.Repeater1.DataSource=product.DataTable;
            this.Repeater1.DataBind();
        }

        public string GetAboutCompany()
        {
            Tpt_Companyinfo company = new Tpt_Companyinfo();
            company.GetIntroduction();
            return company.INTRODUCTION;
        }
    }
}
